<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>商户信息变更申请列表</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"

	rel="stylesheet" />
	
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>

<style>
　　　
　　　　　a {
	text-decoration: none
}

　　　　　a:hover {
	color: red;
	text-decoration: none
}

a:VISITED {
	color: red;
}
　　


　　　
</style>

<script type="text/javascript">

	$(document).ready(function() {
			
			$("#check").click(
						function() {
							var dd = $("input[name=multi_sel]:checked");
							if(dd.length != 1){
								alert("只能选择一个商户进行设置！");
								return false;
							}
							var type=$("#merinfoChangeTyep").find('option:selected').val();
							var id = dd.val();
							if(dd.length == 0){
								alert("请选择商户");
								return false;
							}else{
							
							    $("#queryUserForm").attr("action","<%=basePath%>/merinfoChangeCheck/checkOne.ct?merinfo.id="+id);
							    $("#queryUserForm").submit();
							    return false;
			
							
							}
							
						});
				/* 	$("#query").click(function() {
					    var type=$("#merinfoChangeTyep").find('option:selected').text();
					    $("#editMer").val(type);
					});	
			 */
			});

	
</script>



</head>

<body>

	<div class="subpage">
		<s:form id="queryUserForm" action="/merinfoChangeCheck/queryMerinfoCheckOne.ct" method="post"
			theme="simple">
			<div class="user_title">
	    		 <h2 class="headline-inquires">POS收单运营管理平台<br />
	    		 <span class="sub-title">

	    		 </span></h2>
	    		</div>
			<table width="120%" cellpadding="0" cellspacing="0" border="0"
				class="query_table">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">
							商户信息变更申请初审<br />
							<span class="sub-title"></span>
						</h2>

					</td>
				</tr>


				<tr>
					<td colspan="4">&nbsp;</td>
				</tr>

			<tr> <s:if test="#session.session_merchant.roleType==\"03\"||#session.session_merchant.roleType==\"15\" || #session.session_merchant.roleType==\"16\"">
			  <td align="right" width="15%">商户信息变更类型：</td>
					<td align="left"  >
						<s:select id="merinfoChangeTyep" name="searchCondition.dealCode" list="#{'C1':'申请变更营业地址','C2':'申请结算账户信息变更','C3':'申请调整商户结算扣率','C4':'申请交易额度调整','C5':'商户增机申请','C6':'终止合同申请','C7':'商户基本信息变更申请','C8':'终端注销申请'}" headerKey="99" headerValue="--请选择--" cssClass="queryWidth" /> 
					</td>
			  <td align="right" width="15%"></td>
			  <td>
                  <s:hidden name="searchCondition.orgCode" value="%{#session.session_merchant.orgCode}" />
			  </td>
			</s:if><s:else><td align="right" width="15%">所属机构：</td><td>
				<s:select cssClass="queryWidth" name="searchCondition.orgCode"
								list="#request.orgList" listKey="org_code" listValue="org_name" />
			 </td>
			   <td align="right" width="15%">商户信息变更类型：</td>
					<td align="left"  >
						<s:select id="merinfoChangeTyep" name="searchCondition.dealCode" list="#{'C1':'申请变更营业地址','C2':'申请结算账户信息变更','C3':'申请调整商户结算扣率','C4':'申请交易额度调整','C5':'商户增机申请','C6':'终止合同申请','C7':'商户基本信息变更申请','C8':'终端注销申请'}" headerKey="99" headerValue="--请选择--" cssClass="queryWidth" /> 
					</td></s:else>
               </tr>
               
               <tr>
				<td align="right" width="15%">商户号：</td>
					<td>
							<s:textfield  name="searchCondition.merchantNo" cssClass="queryWidth" />
					</td>
					<td align="right">证件号：</td>
					<td align="left" colspan="1"><s:textfield id="cardNo"
							name="searchCondition.cardNo" cssClass="queryWidth" /></td>
					
				</tr>
				<tr>
					
					<td align="right">商户名称：</td>
					<td align="left" colspan="1"><s:textfield id="accountNo"
							name="searchCondition.merchantName" cssClass="queryWidth" /></td>
				
					<td align="right">营业名称：</td>
					<td align="left" colspan="1"><s:textfield id="realName"
							name="searchCondition.merBrName" cssClass="queryWidth" /></td>
				</tr>
				
				<tr>
						<td colspan="4" align="center"><span style="font-color: red"><s:actionerror /></span>
							<span style="font-color: red;"><s:actionmessage /></span > <span style="font-color: red;"><s:fielderror
									cssClass="fieldError" /></span>
							<span id="otherError"></span>
						</td>
					</tr>
				<tr>
					<td colspan="4" align="right"><s:submit id="query" value="查 询" />
						&nbsp;&nbsp;&nbsp;&nbsp; <s:reset value="取  消" />&nbsp;&nbsp;&nbsp;&nbsp; </td>
				</tr>
				<tr><s:if test="#request.searchRsList != null && #request.searchRsList.size>0">
					<td colspan="4" align="right"><s:submit id="check" value="审 核"/>&nbsp;&nbsp;&nbsp;&nbsp; </td>
					</s:if><s:else>
					<td colspan="4" align="right"><s:submit id="check" disabled="true" value="审 核"/>&nbsp;&nbsp;&nbsp;&nbsp; </td></s:else>	
				</tr>
				<tr>
					<td colspan="4">&nbsp;</td>
				</tr>
			</table>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">商户基本信息列表</h2>

					</td>
				</tr>
				<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/merinfoChangeCheck/queryMerinfoCheck.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
		</s:form>
			<table id="tableList" width="130%" class="table">
				<thead>
					<tr>
					    <th>选择</th>
					    <th>变更类型</th>
						<th>商户号</th>
						<th>商户名称</th>
						<th>营业名称</th>
						<th>业务联系人 </th>
						<th>法人名称</th>
						<th>法人电话</th>
						<th>扣率类型</th>
						<th>扣率(%)</th>
						<th>封顶金额</th>
						<th>证件号码</th>
						<th>商户地址</th>
					
						<th>申请时间</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.searchRsList" status="stat" id="sh">
							<tr class="<s:if test="#stat.index%2==0">tr_0</s:if>" >
						    <td align="center">
					        	   <s:checkboxlist  name="multi_sel" list="#{#sh.id:''}"  theme="simple" />
						       </td>
						       
					       <td><s:if test="#sh.dealCode==\"C1\"">营业地址变更</s:if>
					       <s:elseif test="#sh.dealCode==\"C2\"">结算账户信息变更</s:elseif>
					       <s:elseif test="#sh.dealCode==\"C3\"">结算扣率调整</s:elseif>
					       <s:elseif test="#sh.dealCode==\"C4\"">交易额度调整</s:elseif>
					        <s:elseif test="#sh.dealCode==\"C5\"">增机申请</s:elseif>
					        <s:elseif test="#sh.dealCode==\"C6\"">终止合同申请</s:elseif>
					         <s:elseif test="#sh.dealCode==\"C7\"">商户基本信息变更申请</s:elseif>
					         <s:elseif test="#sh.dealCode==\"C8\"">终端注销申请</s:elseif></td>
							<td>
								<s:property value="#sh.mid"/> 
							</td>
							<td width="200px;"><s:property value="#sh.merName"/></td>
					       <td><s:property value="#sh.merBrName"/></td>
					  
					       <td><s:property value="#sh.interContact"/></td>
					       <td><s:property value="#sh.perName"/></td>
					       <td><s:property value="#sh.perPhone"/></td>
					      
					        <td>
					        	<s:if test="#sh.commMode==\"1\"">点数</s:if>
					        	<s:if test="#sh.commMode==\"3\"">封顶</s:if>
					        </td>
					         <td><page:amount amount="${sh.commRate}"/></td>
					         <td><page:amount amount="${sh.commAmt}"/></td>
					       <td><s:property value="#sh.cardNo"/></td>
					     
					   <td><s:property value="#sh.addr"/></td>
					       <td><s:property value="#sh.dtCreate"/></td>
						</s:iterator>
				</tbody>
			</table>
	</div>
	<s:if test="#request.msg !=null">
		<script language="javascript">
			alert("${request.msg}");
		</script>
	</s:if>
</body>
</html>
